# Generated by Django 4.2.7 on 2024-04-01 13:29

import django.db.models.deletion
from django.db import migrations, models


class Migration(migrations.Migration):

    dependencies = [
        ("tarifs", "0004_alter_uslugi_options_alter_uslugi_ok_isl_p"),
    ]

    operations = [
        migrations.CreateModel(
            name="Ztarifs",
            fields=[
                (
                    "id",
                    models.BigAutoField(
                        auto_created=True,
                        primary_key=True,
                        serialize=False,
                        verbose_name="ID",
                    ),
                ),
                (
                    "trf_zp",
                    models.DecimalField(
                        decimal_places=2, max_digits=8, verbose_name="Зарплатный тариф"
                    ),
                ),
                ("dn", models.DateField(verbose_name="Дата начала действия")),
                (
                    "dk",
                    models.DateField(
                        blank=True, null=True, verbose_name="Дата окончания действия"
                    ),
                ),
                (
                    "type_usl",
                    models.PositiveIntegerField(default=0, verbose_name="Тип услуги"),
                ),
                (
                    "sdl",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="naryad.spr_sdl"
                    ),
                ),
                (
                    "usl",
                    models.ForeignKey(
                        on_delete=django.db.models.deletion.CASCADE, to="tarifs.uslugi"
                    ),
                ),
            ],
            options={
                "verbose_name": "Тарифы специалистов",
                "verbose_name_plural": "Тарифы специалистов",
            },
        ),
    ]
